package com.peanut.baby.mvp.ask;

import android.app.Activity;

import com.peanut.baby.model.UploadConf;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/7/20.
 */

public interface AskContract {
    interface View extends BaseView{
        void onPermissionGranted(List<String> grantPermissions);
        void onPermissionDenied(List<String> grantPermissions);
        void onPictureUploadFinished(boolean success, String failReason, UploadConf successConfig);
        void onSubmitQuestionSuccess();
        void onRequestFailed(String code, String reason);
    }

    interface Presenter extends BasePresenter{
        void checkPermissionBeforeSelectPhoto(Activity activity);
        void submitQuestion(String type, String title, String desc, String picturePath);
        void compressAndUploadPicture(String path);
    }
}
